package com.lintf.wxpay.service;

import com.lintf.wxpay.base.WxChatPayDto;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * @author lin tingfeng
 * @system Mac
 * @data 2024/11/21 13:56
 * @package_name com.lintf.wxpay.service.Impl
 * @project_name sharding-sphere
 * @desc
 */
public interface WxPayService {

    Map<String, Object> nativePay(WxChatPayDto dto);

    Map<String,Object> miniProgramPay(WxChatPayDto dto);

    void processOrder(Map<String, Object> bodyMap);

    void processRefunds(HashMap<String, Object> bodyMap);

    void cancelOrder(String orderNo) throws Exception;

    String queryOrder(String orderNo) throws Exception;

    void checkOrder(String orderNo) throws Exception;

    String refunds(String orderNo, String reason) throws IOException;

    String queryRefunds(String refundNo) throws IOException;

}
